package com.weather.mobile.service;

import com.weather.mobile.dao.CityRepository;
import com.weather.mobile.domain.City;
import net.bytebuddy.asm.Advice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class CityServiceImpl implements CityService {
    @Autowired
    CityRepository cityRepository;

    @Override
    public List<City> cityList(){

        return cityRepository.findAll();

    }

}
